package xyz.cerberu.cet.log.service;

import xyz.cerberu.cet.log.dao.LogDao;
import xyz.cerberu.cet.log.doamin.Log;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.Date;
import java.util.List;

/**
 * @author β世界
 * Created on 18:01
 * @Description
 */
@Service
public class LogServiceImpl {
    private final LogDao logDao;

    @Autowired
    public LogServiceImpl(LogDao logDao) {
        this.logDao = logDao;
    }

    public void addLog(Log log) {
        logDao.addLog(log);
    }

    public List<Log> getLogByType(String type, int startLine) {
        return null;
    }

    public List<Log> getLogByDate(Date date, int startLine) {
        return null;
    }

    public List<Log> getLogByOperator(String operator, int startLine) {
        return null;
    }

}
